﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EyFramework.ORM;
using EyFramework.Sys.Entity;
using EyFramework.Sys.Entity.Dto;

namespace EyFramework.Sys.Core.Dao
{
    /// <summary>
    ///  QRTZ_CS_TASK表的数据库操作
    /// </summary>
    public class QrtzCsTaskDao : BaseDaoHis<QrtzCsTask>, IQrtzCsTaskDao
    {
        public List<QrtzCsTask> GetAllTask(TaskQueryParam taskQueryParam)
        {
            return Db.Queryable<QrtzCsTask>().WhereIF(!string.IsNullOrEmpty(taskQueryParam.TaskStatus),
                p => p.TASK_STATUS == taskQueryParam.TaskStatus).ToList();
        }
    }
}